<?php
class ApiController extends Zend_Controller_Action
{
    public function init()
    {
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->layout()->disableLayout();
    }

    public function indexAction()
    {
        require_once 'helpers/EscoreboarApi.php';
        $server = new Zend_Rest_JSONServer();
        $server->setClass('EscoreboarApi');
        $server->setEncoding('utf-8');
        $obj = $server->handle($_GET);
    }
}